Don't call mkshort twice for ANYNAME. Fix for Rick.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 21 May 2003 02:14:49 +0000 (02:14 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 21 May 2003 02:14:49 +0000 (02:14 +0000)
gpsbabel/csv_util.c

index f9ef0481455a2f74f84c516c4778bb11ce110089..a89bcfe37ed73381a5367cbd80504fa2c9a2883a 100644 (file)
@@ -639,10 +639,7 @@ xcsv_waypt_pr(const waypoint *wpt)
                 anyname = xstrdup("");
 
             if ((anyname) && (global_opts.synthesize_shortnames)) {
-               char *oldname = anyname;
-                anyname = mkshort(xcsv_file.mkshort_handle, 
-                       wpt->notes ? wpt->notes : wpt->description);
-               xfree(oldname);
+                anyname = xstrdup(shortname);
            }
 
             sprintf(buff, fmp->printfc, anyname);